<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>demo</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width"/>
	<link rel="shortcut icon" href="img/touchicon.png"/>
	<link rel="stylesheet" href=""/>
	<style type="text/css">
	</style>
</head>
<body>
	<script>
		function foo1(m){
			if (m<=1){
				return 1;
			} else {
				return m + foo1(m-1);
			}
		}
		var a = foo1(10);
		console.log(a);
	</script>
</body>
</html>